package com.qykj.ddhing.pda.demo.dagger2.test4;

import android.app.Application;
import android.content.Context;

import javax.inject.Singleton;

import dagger.Module;
import dagger.Provides;

/**
 * @author liuxiaofeng QQ:363204195
 * @name ddhing_pda
 * @class name：com.qykj.ddhing.pda.demo.dagger2.test4
 * @class describe
 * @time 2018/7/19 00:04
 * @change
 * @chang time
 * @class describe
 */
@Module
public class AppModule {

    private final Application application;

    public AppModule(Application application) {
        this.application = application;
    }

    @Provides
    @Singleton
    Context getAppContext() {
        return application;
    }
}
